package com.admin.service;

import com.admin.entity.StationType;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author marisheng
 * @since 2019-11-21
 */
public interface IStationTypeService extends IService<StationType> {
    /**
     * 分页查询站点类型，及模糊查询
     * @param page
     * @param limit
     * @param stationType
     * @return
     */
    public IPage FYcha(int page, int limit, String stationType);

    /**
     * 插入站点类型前查数据库类型是否重复
     * @param stationType
     * @return
     */
    public StationType selectAndAddType(StationType stationType);

    /**
     * 编辑站点前判断站点名字是否重复
     * @param stationType
     * @return
     */
    public StationType editAddSelect(StationType stationType);

    IPage zhuTiFindALL(int page, int limit, Map map);
}
